package com.woniuxy.service;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.woniuxy.ResponseResult;
import com.woniuxy.ServerResponse;
import com.woniuxy.entity.Shopinfo;
import com.baomidou.mybatisplus.extension.service.IService;

import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 
 * @since 2021-03-23
 */
public interface ShopinfoService extends IService<Shopinfo> {
    //注册
    ServerResponse<Void> register(Shopinfo shopinfo);

    /**
     * 修改头像 上传到oss
     * @param file
     * @return
     */
    ResponseResult<Void> updateAvator(MultipartFile file)  throws  Exception;

    /**
     *  发送验证码
     * @param account
     * @return
     */
    ServerResponse<Void> send(String account);

    /**
     * 验证码登录
     * @param account
     * @param code
     * @return
     */
    ServerResponse<Void> codeLogin(String account,String code);

    /**
     * 根据id查看商家信息
     * @param id
     * @return
     */
    ResponseResult< Map<String,Object>> getShopInfoDetailById(Integer id);

}
